//
//  LJRightTableViewCell.m
//  百思不得姐
//
//  Created by 刘鹿杰 on 16/7/17.
//  Copyright © 2016年 刘鹿杰. All rights reserved.
//

#import "LJRightTableViewCell.h"
#import "ljuserModel.h"
#import <UIImageView+WebCache.h>

@interface LJRightTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;
@property (weak, nonatomic) IBOutlet UIButton *trendBtn;


@end




@implementation LJRightTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.backgroundColor = LJRGBColor(244, 244, 244);
    
}

-(void)setUserModel:(LJUserModel *)userModel{
    
    _userModel = userModel;
   
    self.nameLabel.text = userModel.screen_name;
    
    self.detailLabel.text = [NSString stringWithFormat:@"%@关注人数",userModel.fans_count];

    
    [self.iconImage sd_setImageWithURL:[NSURL URLWithString:userModel.header] placeholderImage:[UIImage imageNamed:@"defaultUserIcon"]];
    
    
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
